package net.service.impl;

import net.dao.BackgroundDao;
import net.form.processing.HSVRangeBackground;
import net.model.Background;
import net.service.BackgroundManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class BackgroundManagerImpl implements BackgroundManager {

	@Autowired
	private BackgroundDao backgroundDao;

	@Transactional
	public Background getBackground() {
		return backgroundDao.getBackground();
	}

	@Transactional
	public void setHSVRangeBackground(HSVRangeBackground rangeBackground) {
		backgroundDao.setHSVRangeBackground(rangeBackground);
	}

	@Transactional
	public Background findConfiguracion(String nombreSistema) {
		return backgroundDao.findConfiguracion(nombreSistema);
	}

	@Transactional
	public void setSeparationOfObjects(boolean separationOfObjects) {
		backgroundDao.setSeparationOfObjects(separationOfObjects);
	}

}
